#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<time.h>
#include<stdlib.h>
#include<stddef.h>
struct S1
{

	short a;
	int b;
	int c;
	char d;
	char e;

};
struct S2
{
	int i;
	double a1;
	char a2;
};
int main()
{
	printf("%zu\n", offsetof(struct S1, a));
	printf("%zu\n",offsetof(struct S1 ,b));
	printf("%zu\n", offsetof(struct S1 ,c));
	printf("%zu\n", offsetof(struct S1, d));
	printf("%zu\n", offsetof(struct S1, d));
	printf("%zu", sizeof(struct S1));
	return 0;
}